/*
 * @Author: TJN tjn@246@126.com
 * @Date: 2024-06-25 14:52:01
 * @LastEditors: TJN tjn@246@126.com
 * @LastEditTime: 2024-06-27 12:16:33
 * @FilePath: \hdcms-nest\src\soft\dto\create-soft.dto.ts
 * @Description:
 *
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
 */
import { IsNotEmpty } from 'class-validator';

export class CreateSoftDto {
  @IsNotEmpty({ message: '标题不能为空' })
  title: string;
  @IsNotEmpty({ message: '内容不能为空' })
  content;
  @IsNotEmpty({ message: '预览图不能为空' })
  preview: string;
}
